package cn.wolfcode.cloud.shop.redis;

import cn.wolfcode.cloud.redis.KeyPrefix;

/**
 * @Description: 会员服务redis获取前缀
 * @Author: 伍家钰
 * @Date: 2020/9/7 20:09
 * @Version: 1.0
 */
public class MemberKeyPrefix implements KeyPrefix {
    private int expireTime;
    private String keyPrefix;

    public MemberKeyPrefix(int expireTime, String keyPrefix) {
        this.expireTime = expireTime;
        this.keyPrefix = keyPrefix;
    }

    @Override
    public int getExpireTime() {
        return this.expireTime;
    }

    @Override
    public String getKeyPrefix() {
        return this.keyPrefix;
    }

    public static final MemberKeyPrefix USER_TOKEN = new MemberKeyPrefix(1800, "userToken");
}
